﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="TPCN.Admincp.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Đăng nhập</title>
    <link href="../App_Themes/Admincp/login-box.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="loginform" runat="server">
    <div class="center-vertical">
        <asp:Login ID="AdminLogin" runat="server" EnableViewState="False" 
            RenderOuterTable="False" 
            FailureText="Tên đăng nhập hoặc mật khẩu không chính xác">
            <LayoutTemplate>
                <div class="login-box">
                    <h2>
                        Đăng nhập</h2>
                    <br />
                    <br />
                    <div class="login-box-name" style="margin-top: 20px;">
                        Tên đăng nhập:</div>
                    <div class="login-box-field" style="margin-top: 20px;">
                        <asp:TextBox ID="UserName" CssClass="form-login" ToolTip="Tên đăng nhập" MaxLength="2048"
                            runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                                runat="server" ControlToValidate="UserName" ErrorMessage="User Name is required."
                                ToolTip="User Name is required." 
                            ValidationGroup="LoginValidationGroup">*</asp:RequiredFieldValidator></div>
                    <div class="login-box-name">
                        Mật khẩu:</div>
                    <div class="login-box-field">
                        <asp:TextBox ID="Password" CssClass="form-login" ToolTip="Mật khẩu" TextMode="Password"
                            MaxLength="2048" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired"
                                runat="server" ControlToValidate="Password" ErrorMessage="Password is required."
                                ToolTip="Password is required." ValidationGroup="LoginValidationGroup">*</asp:RequiredFieldValidator>
                    </div>
                    <br />
                    <span class="login-box-options">
                        <asp:CheckBox ID="RememberMe" runat="server" Text="Ghi nhớ" />
                        <asp:LinkButton ID="ForgotPass" CssClass="forgotpass" runat="server" 
                        CausesValidation="False" EnableViewState="False" 
                        PostBackUrl="~/Accounts/ForgotPassword.aspx">Quên mật khẩu</asp:LinkButton></span>
                    <br />
                    <br />
                    <asp:ImageButton ID="Login" runat="server" CssClass="btn" Width="103" Height="42"
                        ImageUrl="~/App_Themes/Admincp/Images/login-btn.png" 
                        ValidationGroup="LoginValidationGroup" CommandName="Login" />
                </div>
                <div class="center"><asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal></div>
            </LayoutTemplate>
        </asp:Login>
    </div>
    </form>
</body>
</html>
